package org.yenn.proxy.myproxy.impl;

import lombok.AllArgsConstructor;
import org.yenn.proxy.myproxy.Moveable;

@AllArgsConstructor
public class CarTimeProxy implements Moveable {

	private Moveable m;
	
	@Override
	public void move() {
		long starttime = System.currentTimeMillis();
		System.out.println("汽车开始行驶....");
		m.move();
		long endtime = System.currentTimeMillis();
		System.out.println("汽车结束行驶....  汽车行驶时间："
				+ (endtime - starttime) + "毫秒！");
	}

}
